﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace PureMVC.utils
{
    /// <summary>
    /// 日之类
    /// </summary>
    class UtilsLogger
    {
        public static void trace(Object obj)
        {
            Console.WriteLine(obj.ToString());
        }

        public static void init()
        {
            AllocConsole();
        }

        [DllImport("Kernel32.dll")]
        static extern bool AllocConsole();
        [DllImport("Kernel32.dll")]
        static extern bool FreeConsole();

    }
}
